package com.jereh.cloudmusic.actvity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.RadioGroup;

import com.jereh.cloudmusic.R;
import com.jereh.cloudmusic.adapter.ViewPagerAdapter;

import java.util.ArrayList;
import java.util.List;

public class GuideActivity extends AppCompatActivity {

    private ViewPager guide;
    private RadioGroup group;
    private PagerAdapter adapter;
    private List<View> list=new ArrayList<>();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_guide);
        guide=(ViewPager)findViewById(R.id.guide);
        group=(RadioGroup)findViewById(R.id.group);
        adapter=new ViewPagerAdapter(list);
        guide.setAdapter(adapter);
        jumpToActivity();
    }

    private void jumpToActivity(){
        startActivity(new Intent(this,MainActivity.class));
        finish();
    }
}
